<?php

class Task extends AppModel {
  var $name = 'Task';
  
  var $validate = array(
    'summary' => array(
      'rule' => 'notEmpty',
      'message' => 'Enter a task summary',
    ),
    'status' => array(
      'rule' => 'numeric',
      'message' => 'Enter a number',
    ),
  );
}